package ${module.serviceImplPackage};

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import ${frameworkPackage}.dao.BasicService;
import ${frameworkPackage}.dao.Dao;
import ${frameworkPackage}.general.Page;
import ${frameworkPackage}.general.Searching;
import ${beanModule.entityPackage}.${entityName};
import ${beanModule.searchPackage}.${entityName}4Search;
import ${module.daoPackage}.${entityName}Dao;
import ${module.servicePackage}.${entityName}Service;

/**
 * @author Moyq5's MvcMaker Tools
 */
@Service
public class ${entityName}ServiceImpl extends BasicService<${entityName}> implements ${entityName}Service {
	
	private static Logger log = LoggerFactory.getLogger(${entityName}ServiceImpl.class);

	@Resource
	${entityName}Dao ${lowerName}Dao;

	@Override
	protected Dao<${entityName}> getDao() {
		return ${lowerName}Dao;
	}

	@Override
	public Page<${entityName}> page(${entityName}4Search ${lowerName}4s, Searching si) {
		log.debug("page：${entityName}4Search");
		return ${lowerName}Dao.page(${lowerName}4s, si);
	}
}
